import httpsRequest  from '@/utils/request.js'
const getArticleRequest = async (page,size)=> await httpsRequest.get(`/api/article/?currentPage=${page}&size=${size}`)
const getNavigationRequest =  async()=> await httpsRequest.get('/api/category')
const getArticleTotalRequest = async ()=>await httpsRequest.get('/api/articleTotal')
const getLifeMomentRequest = async (page,size)=>await httpsRequest.get(`/api/lifeMoment/?page=${page}&size=${size}`)
const getLifeMomentTotalRequest  = async () =>await httpsRequest.get(`/api/lifeMomentTotal`)
const getArticleByCategoryIdRequest = async (id)=>await httpsRequest.get(`/api/getCateGoryArticle?id=${id}`)
export {
    getArticleRequest,
    getNavigationRequest,
    getArticleTotalRequest,
    getLifeMomentRequest,
    getLifeMomentTotalRequest,
    getArticleByCategoryIdRequest
}